<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Db;

/**
 * 首页接口
 */
class Area extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 首页
     *
     */
    public function provinceList()
    {
        $this->success('请求成功', model('app\admin\model\Area')->where('level', 1)->order('id ASC')->select());
    }
}
